|
|
Edward C. <edw### [at] hotmailcom> wrote:
: Looking through the source for a formula to convert RGB values to grey
: values, I've discovered a number of slightly different formulas, none of
: which will convert RGB <1,1,1> to a grey value of 1.
Are you sure? The weights for the color components are calculated with:
0.2125*R + 0.7154*G + 0.0721*B
If we substitute R, G and B with 1's, we get exactly 1.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|